//
//  SearchWenViewController.m
//  Otaku
//
//  Created by lanou3g on 16/5/16.
//  Copyright © 2016年 Liuwx. All rights reserved.
//

#import "SearchWenViewController.h"

@interface SearchWenViewController ()<UIWebViewDelegate>

@property (nonatomic, strong) UIWebView *webView;
//显示一下加载的菊花效果
@property (nonatomic, strong) SDRotationLoopProgressView *rotationView;
@end

@implementation SearchWenViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    //加载菊花效果
    self.rotationView = [SDRotationLoopProgressView progressView];
    
    float rotationX = ( self.view.frame.size.width / 2) - 50;
    float rotationY = (self.view.frame.size.height / 2) - 50;
    self.rotationView.frame = CGRectMake(rotationX, rotationY, 100, 100);
    [self.view addSubview:self.rotationView];
    
    
    self.webView = [[UIWebView alloc] initWithFrame:self.view.bounds];
    [self.view addSubview:self.webView];
    [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.string]]];
    self.webView.delegate = self;
    
    // Do any additional setup after loading the view.
}
- (void)webViewDidFinishLoad:(UIWebView *)webView {
    
    self.rotationView.progress = 1;

    
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
